package com.gem.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/editor")
public class EditorController {
    @RequestMapping("/editorPage")
    public String editorPage(){
        return  "admin/addProduct";
    }
    @RequestMapping("/save")
    @ResponseBody
    public String save(String content){
        //获取富文本编辑器内容，调用业务层保存到数据库
        System.out.println(content);
        return  content;
    }
}
